class Notice {
  final String createBy;
  final String createTime;
  final String? updateBy;
  final String? updateTime;
  final String? remark;
  final int noticeId;
  final String noticeTitle;
  final String noticeType;
  final String noticeContent;
  final String status;
  final String noticePicture;

  Notice({
    required this.createBy,
    required this.createTime,
    this.updateBy,
    this.updateTime,
    this.remark,
    required this.noticeId,
    required this.noticeTitle,
    required this.noticeType,
    required this.noticeContent,
    required this.status,
    required this.noticePicture,
  });

  factory Notice.fromJson(Map<String, dynamic> json) {
    return Notice(
      createBy: json['createBy'],
      createTime: json['createTime'],
      updateBy: json['updateBy'],
      updateTime: json['updateTime'],
      remark: json['remark'],
      noticeId: json['noticeId'],
      noticeTitle: json['noticeTitle'],
      noticeType: json['noticeType'],
      noticeContent: json['noticeContent'],
      status: json['status'],
      noticePicture: json['noticePicture'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'createBy': createBy,
      'createTime': createTime,
      'updateBy': updateBy,
      'updateTime': updateTime,
      'remark': remark,
      'noticeId': noticeId,
      'noticeTitle': noticeTitle,
      'noticeType': noticeType,
      'noticeContent': noticeContent,
      'status': status,
      'noticePicture': noticePicture,
    };
  }
}
